package com.twl.app.base.bo;
 
import java.math.BigDecimal;
import java.util.Date;
 
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

 
import com.twl.app.base.entity.Dispatchmanger; 
 
import com.twl.app.base.entity.Bfsalary;
 
import com.twl.core.framework.bo.impl.AbsCrudBoImpl;

@Repository("payCoreTransLogBo")
public class PayCoreTransLogBoImpl extends AbsCrudBoImpl{
	private Logger logger = Logger.getLogger(PayCoreTransLogBoImpl.class);
	
	/*public String saveTransLog(){
		Dispatchmanger m=new Dispatchmanger();
		m.setAmountdou(BigDecimal.valueOf(9.8));
		m.setBecomany("jhkhj");
		m.setCardinaldou(BigDecimal.valueOf(9.76));
		m.setDatemoney(new Date());
		m.setStaffint("kk11");
		m.setStafftype("ijhik");
		m.setStafftypes("ddf");
		try {
			saveOrUpdateData(m);
	 
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			logger.info("保存请求流水表接口出错",e);
		}
	    return "ok";
	}*/
	
	public String saveMatchOrderSeqLog(String orderNo, String orderSeqNo,
			String transType) {
		// TODO Auto-generated method stub
	/*///	MatchOrderSeqLog orderSeq = new MatchOrderSeqLog();
		orderSeq.setOrderNo(orderNo);
		orderSeq.setOrderSeqNo(orderSeqNo);
		orderSeq.setTransType(transType);
		*/
		try {
		//	saveOrUpdateData(orderSeq);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			logger.info("保存请求流水表接口出错",e);
		}
		return "ok";
	}
 
	public void getinser(){
		System.out.println("dfdff");
	}
 
	
	public  String save (){
		
		try {
			
			Integer count = (Integer) getSingleResult("select count(*) from bfsalary ");
			System.out.println(count);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "ok" ;
		
		
	}
	
	public String insert(){
		Bfsalary bf = new Bfsalary();
		bf.setDid(2);
		bf.setStaffint("1112223333");
		try {
			saveOrUpdateData(bf);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "ok";
	}
   public void se(){
	   Bfsalary bf = new Bfsalary();
		bf.setDid(5);
		bf.setStaffint("111222");
		Object param[]={"22",2,"22"};
		String sql="";
				
		try {
		 
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
